package com.service.Impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dao.MusicListDao;
import com.entity.MusicList;
import com.entity.Data.PagerData;
import com.entity.Query.MusicListQuery;
import com.service.MusicListService;

@Service
public class MusicListServiceImpl implements MusicListService{

	@Autowired
	private MusicListDao musicListDao;
	@Override
	public List<Map<String, Object>> queryMusicList() {
		// TODO Auto-generated method stub
		return musicListDao.queryMusicList();
	}

	@Override
	public Map<String, Object> queryMusicListId(int musicListId) {
		// TODO Auto-generated method stub
		return musicListDao.queryMusicListId(musicListId);
	}

	@Override
	public int addMusicList(MusicList musicList) {
		// TODO Auto-generated method stub
		return musicListDao.addMusicList(musicList);
	}

	@Override
	public int editMusicList(MusicList musicList) {
		// TODO Auto-generated method stub
		return musicListDao.editMusicList(musicList);
	}

	@Override
	public int del(int musicListId) {
		// TODO Auto-generated method stub
		return musicListDao.del(musicListId);
	}

	@Override
	public PagerData queryByPage(MusicListQuery musicListQuery, int curPage, int pageSize) {
		// TODO Auto-generated method stub
		return musicListDao.queryByPage(musicListQuery, curPage, pageSize);
	}

}
